home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 2 / Geek_Gadgets_2_2352.bin / lists / ade-gcc.archive.9602.gz / ade-gcc.archive.9602 / 000080_owner-ade-gcc_Fri Feb 16 02:35:14 1996.msg < prev    next >
Internet Message Format  |  1996-02-28  |  2KB

  1. Return-Path: <owner-ade-gcc>
  2. Received: by fishpond (Smail3.1.29.1 #57)
  3.     id m0tnKfJ-000gXXa; Fri, 16 Feb 96 02:33 EST
  4. Sender: owner-ade-gcc
  5. Received: from ernie.icslab.agh.edu.pl by fishpond with smtp
  6.     (Smail3.1.29.1 #57) id m0tnKfC-000gXUC; Fri, 16 Feb 96 02:33 EST
  7. Received: (from kiskra@localhost) by ernie.icslab.agh.edu.pl (8.6.12/8.6.12) id IAA18131; Fri, 16 Feb 1996 08:32:30 +0100
  8. Date: Fri, 16 Feb 1996 08:32:29 +0100 (MET)
  9. From: Kamil Iskra <kiskra@ernie.icslab.agh.edu.pl>
  10. To: Niels M�ller <nisse@lysator.liu.se>
  11. cc: ADE GCC List <ade-gcc@amigalib.com>
  12. Subject: Re: Passing arguments in registers - first attempt.
  13. In-Reply-To: <199602152142.WAA07220@tingeling.lysator.liu.se>
  14. Message-ID: <Pine.SUN.3.91.960216082728.17900A-100000@ernie>
  15. MIME-Version: 1.0
  16. Content-Type: TEXT/PLAIN; charset=US-ASCII
  17. Content-Transfer-Encoding: QUOTED-PRINTABLE
  18. Sender: owner-ade-gcc@ninemoons.com
  19. Precedence: bulk
  20.  
  21. On Thu, 15 Feb 1996, Niels M=F6ller wrote:
  22.  
  23. > Say ixemul defines the function open, declared in unistd.h like
  24. >=20
  25. > int open(char * name, int mode);
  26. >=20
  27. > ixemul expects arguments to be passed in registers. Then, using some
  28. > future or present feature of gcc, change the prototype in unistd.h=20
  29. >=20
  30. > int open(char *name, int mode) __attribute((stackparms));
  31. >=20
  32. > This should make gcc put the arguments for the function open() on the
  33. > stack, even if -mregargs was specified on the command line.
  34.  
  35. Now I understand.=20
  36.  
  37. I see two possible problems:=20
  38.  
  39. 1. LibNIX uses the same header files. However, this is a linker library so
  40. it wouldn't be hard to make it accept arguments in registers.=20
  41.  
  42. 2. A lot of headers would have to be modified. I don't know whether Hans
  43. would like it.=20
  44.  
  45. / Kamil Iskra - AMIGA 1200, 68030 50MHz, HDD 850 MB, 10 MB RAM \
  46. | iskra@student.uci.agh.edu.pl  kiskra@ernie.icslab.agh.edu.pl |
  47. | http://student.uci.agh.edu.pl/~iskra                         |
  48. \ PGP public key available via Finger or WWW                   /